title = "customer-order-list"

url = "/account/orders.html"

layout = "default"

is_hidden = 0

description = "用户订单列表"



[session]

security = "user"

redirect = "account/login"

==

{% put page_title %}DASHBOARD{% default %}{% endput %}

{% set orders = catalog.orders %}

{% set Addresses = catalog.getAddresses %}

<!-- contents -->

<div id="contents">

	<nav class="crumbs_nav">

		<ul class="crumbs_list rdstr">

			<li class="crumbs_item">

				<a class="crumbs_link" href="/">

					<span>{{ 'Home'|_ }}</span>

				</a>

			</li>

			<li class="crumbs_item">

				<a class="crumbs_link" href="{{ 'account/dashboard'|page }}">

					<span>{{ 'My account'|_ }}</span>

				</a>

			</li>

			<li class="crumbs_item no_deco">

				<span class="crumbs_link">{{ 'My order'|_ }}</span>

			</li>

		</ul>

	</nav>

	<h3 class="title_main">{{ 'My order'|_ }}</h3>

	

	{% if count(orders)>0 %}

	<!-- 有记录时显示 -->

	<section>

			<ul class="list_product_line list_product_line_checkbox clearfix">

			   {% for order in orders %}

				<li class="list_product_item">

					<div class="box_list">

						<!-- <div class="pl5">

							<div class="check_common_btn">

								<input id="check_{{ loop.index }}" type="checkbox" name="" value="{{ order.id }}">

								<label for="check_{{ loop.index }}">

									<span></span>

								</label>

							</div>

						</div> -->

						<div class="list_product_link box_list_main">

							<div class="list_product_frame">

								<div class="list_product_text_block">

									<a class="db" href="/orderdetail-{{ order.sn }}.html" >

										<p class="list_product_brand rdstr">{{ 'ORDERID'|_ }}: {{ order.sn }}</p>

										<p class="list_product_name">{{ 'ORDER TIME'|_ }}: {{ order.created_at }}</p>

										<p class="list_product_category rdstr">{{ 'PAY'|_ }}: {{ order.paymentmethod.name }}</p>

										<p class="list_product_price_block rdstr pricedownView">

											<span class="list_product_price force_color">{{ 'TOTAL'|_ }}: {{ order.total_price|format }}</span>

											<span class="list_product_pricedown force_color">{{ order.order_status.translateName }}</span>

										</p>

									</a>

								</div>

								<span class="arrow"></span>

							</div>

							<!-- <a class="btn_delete" href="javascript:;">

		                       <span class="icon_wrap">

		                        <span class="icon_img i_common_cart sprite-trash_g"></span>

		                        <span class="icon_txt">削除</span>

		                      </span>

		                   </a> -->

						</div>

					</div>

				</li>

				{% endfor %}

			</ul>

			<!-- <div class="bg_gray p10 topBorder clearfix">

				<div class="_allCheck fl">

					<a class="unchecked" href="javascript:;">

						<span class="icon_check"></span>

						<span class="icon_check_txt">すべてチェック</span>

					</a>

				</div>

				<button class="button_common fr w160 fnt_xsmall" type="submit" name="" value="">チェックアイテムを削除</button>

			</div> -->

	</section>

	{% else %}

    <!-- 无记录时显示 -->



	<section>

		<div class="grid_margin">

			<p class="txt_s lh140">{{ 'You can have a conformation with the payment method and shipping address in your order detail, also can write reviews in your ordered products.'|_ }}</p>

		</div>

	</section>

	<section class="section_margin">

		<div class="base_frame grid_margin">

			<p class="txt">{{ 'No order'|_ }}</p>

		</div>

	</section>





	{% endif %}

</div>

<!-- end contents -->